import api from '../index';
import urls from './urls';

const header = {};

export default {
    getlist(ids) {
        // return出去了一个promise
        return api.get(urls.getlist,ids, null, null);
    },
    getonly(id) {
        // return出去了一个promise
        return api.get(urls.getonly,id, null, null);
    },
    add(data) {
        return api.post(urls.add, data, null, null);
    },
    modify(data) {
        return api.post(urls.modify, data, null, null);
    },
};